﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 人类_计算
{
    public class Person : IShowInfo
    {
        private string _name;
        private int _age;

        public string Name { get { return _name; } set { _name = value; } }
        public int Age { get { return _age;} set { _age = value; } }

        public void ShowInfo()
        {
            Console.WriteLine($"姓名：{_name}，年龄：{_age}");
        }
    }

    public interface IShowInfo
    {
        void ShowInfo();
    }
}
